.workflow-list {
  .setOfBooks-container {
    .setOfBooks-select {
      margin-bottom: 10px;
      .title {
        line-height: 32px;
      }
    }
  }
  .no-data{
    text-align: center;
    color: $font-subtitle;
    padding-top: 20px;
    border-right: 1px solid $divide-line;
    .img-wrap{
      width: 60%;
      margin-left: 20%;
      margin-top: 20px;
      img {
        width: 100%;
        max-width: 250px;
      }
    }
    .mess-wrap{
      margin-top: 10px;
    }
  }
}
.error-panel{
  position: fixed;
  top: 80px;
  z-index: 1;
  background: #FFE7E6;
  border: 1px solid #FF8888;
  font-size: 12px;
  color: #E54F4F;
  padding: 3px;
  left: 20px;
  cursor: pointer;
}

.workflow-scroll {
  height: calc(100vh - 250px);
  overflow-x: hidden;
  overflow-y: auto;
}

.workflow-header {
  background: #444B51;
  font-size: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 64px;
  position: relative;
  top: 0;
  width: 100%;
  z-index: 1;
  .form-name {
    flex: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    span {
      padding-left: 10px;
    }
  }
  .exclamation-circle {
    color: $default-color;
    font-size: 12px;
    margin-left: 10px;
  }
  .mess{
    padding-left: 0!important;
    font-size: 12px;
    color: #a2a2a2;
  }
  .version {
    color: #FF9317;
    font-size: 14px;
  }
  .header-content {
    flex: 5;
    text-align: center;
    display: flex;
    height: 100%;
    .content-item {
      width: 100px;
      line-height: 64px;
      font-size: 16px;
      text-align: center;
      cursor: pointer;
    }
    .actived {
      color: #565656;
      background: #E4E5E9;
      -webkit-transition: all 0.3s ease;
      -moz-transition: all 0.3s ease;
      -ms-transition: all 0.3s ease;
      -o-transition: all 0.3s ease;
      transition: all 0.3s ease;
    }
  }
  .header-buttons {
    flex: 3;
    text-align: right;
    .save-btn {

    }
  }
}

.workflow-base-setting {
  font-size: 12px;
  .slide-frame.animated .slide-content {
    padding: 0 0 60px;
  }
  .ant-collapse > .ant-collapse-item > .ant-collapse-header .arrow {
    right: 16px;
    left: inherit;
  }
  .delete-icon{
    padding-left: 10px;
    color: #bbb;
    cursor: pointer;
  }
  .ant-collapse > .ant-collapse-item > .ant-collapse-header {
    padding-left: 10px !important;
  }
  .ant-form label {
    font-size: 12px !important;
  }
  .ant-checkbox-group-item {
    display: block !important;
  }
  .ant-form-item-label {
    text-align: left;
  }
  .add-btn {
    font-size: 12px;
    color: $default-color;
    cursor: pointer;
    margin-right: 10px;
    margin-top: 10px;
  }
  .icon-padding {
    padding-right: 5px;
  }
  .approval-select {
    display: inline-block !important;
    width: 100px;
    margin-left: 10px;
  }
  //.save-btn {
  //  left: 16px;
  //}
  //.cancel-btn {
  //  right: 16px;
  //}
  .ant-form-item {
    margin-bottom: 5px;
  }
  .antd-pro-tag-select-tagSelect {
    max-height: inherit !important;
  }
  .dep-by-bill, .direct-manager, .default-addition, .cost-center, .cost-center-dept, .user-approver, .user-group-approver {
    h4 {
      display: inline-block;
      margin-right: 15px;
    }
  }
  .rule-condition-list {
    .condition-group {
      font-size: 12px;
      position: relative;
      padding-right: 10px;
      .relation {
        font-size: 12px;
        margin-bottom: 10px;
      }
    }
    .part-fill {
      background: #FFD98A;
      cursor: pointer;
      color: #22313C;
      border-radius: 2px;
      padding: 6px 8px;
    }
    .all-fill {
      background: #C3E1FF;
      cursor: pointer;
      border-radius: 2px;
      color: #22313C;
      padding: 6px 8px;
    }
    .delete-btn {
      text-align: right;
      cursor: pointer;
    }
    .padding-10 {
      padding-bottom: 10px;
    }
    .select-div{
      border: 1px solid #ddd;
      padding: 3px;
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-line-clamp: 1;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      border-radius: 3px;
      margin-right: 7px;
      color: #333;
    }
    .condition-item {
      padding-bottom: 8px;
      .left-name {
        float: left;
        padding: 3px 15px 3px 2px;
        max-width: 100px;
      }
      .left-tab {
        float: left;
        padding: 3px 5px 3px 2px;
      }
      .tag-select {
        .ant-tag {
          margin-bottom: 10px;
        }
      }
      &.part-fill-border {
        padding: 10px;
        border-left: 1px solid #FFC86E;
      }
      &.full-fill-border {
        padding: 10px;
        border-left: 1px solid #C9E7FF;
      }
    }
    .add-condition {
      margin-left: 10px;
      padding: 3px 15px;
      color: #4A90E2;
      cursor: pointer;
      border-radius: 2px;
      border: 1px dashed #D7DCE6;
      white-space: nowrap;
      margin-top: -1px;
      display: inline-block;
      .select-dep-or-person .placeholder-class {
        color: #4A90E2;
      }
    }
    .add-group-btn {
      margin-top: 10px;
      margin-left: 20px;
    }
    .btn-group {
      padding-top: 10px;
      button {
        font-size: 13px;
        margin-right: 10px;
      }
    }
    .condition-content {
      padding: 5px 10px;
      padding-right: 0;
      &.part-fill-border {
        border-left: 1px solid #FFC86E;
      }
      &.full-fill-border {
        border-left: 1px solid #C9E7FF;
      }
    }
  }
  .approver-list {
    padding: 5px 20px 10px 20px;
    color: #8C96B4;
    font-size: 12px;
    .margin-10 {
      margin-left: 10px;
    }
    .approver-item {
      border-bottom: 1px solid #f3f3f3;
      padding: 8px 0;
      .anticon-delete{
        color: #8C96B4;
        cursor: pointer;
      }
      form .ant-select:only-child.ant-select-sm, form .ant-cascader-picker:only-child.ant-select-sm,
      form .ant-select:only-child.ant-cascader-picker-small,
      form .ant-cascader-picker:only-child.ant-cascader-picker-small {
        position: relative;
        top: 0;
      }
      .add-multi-user{
        margin-left: 10px;
        padding: 1px 15px;
        color: #4A90E2;
        cursor: pointer;
        border-radius: 2px;
        border: 1px dashed #D7DCE6;
        white-space: nowrap;
        margin-top: -1px;
        display: inline-block;
      }
      .multi-approver{
        margin-left: 20px;
        margin-bottom: 5px;
        color: #333;
      }
    }
    .approver {
      color: #000;
      font-size: 13px;
      margin-top: 5px;
      .anticon-delete{
        color: #8C96B4;
        cursor: pointer;
      }
      .approve-level {
        width: 110px;
        position: relative;
        top: 0;
        margin-left: 10px;
      }
      .approve-level-en {
        width: 150px;
        position: relative;
        top: 0;
        margin-left: 10px;
      }
    }
  }
  .node-approve-man, .node-know, .node-approve-ai, .node-print {
    .basic-info-container {
      margin-bottom: 20px;
      .ant-form-item-label {
        text-align: left;
      }
      .title {
        font-size: 20px;
        margin-bottom: 10px;
      }
      .ant-form-item {
        margin-bottom: 10px;
      }
      .approval-select {
        display: inline-block;
        width: 150px;
        margin-left: 10px;
      }
      .ant-card-body {
        padding: 10px 24px;
      }
    }
    .add-btn-container {
      .approve-info-icon {
        color: $default-color;
        margin: 0 5px 0 10px;
      }
      .approve-info-text {
        font-size: 12px;
        color: #aaa;
      }
    }
  }
  .node-know {
    .basic-info-container {
      .ant-checkbox-group {
        line-height: unset;
        .ant-checkbox-group-item {
          display: block;
        }
      }
      .notify-weChat {
        display: inline-block;
        span {
          font-size: 12px;
          color: #bababa;
        }
      }
      .notify-title-show {
        margin: 15px 0 0;
        line-height: 15px;
      }
    }
  }
  .node-approve-ai {
    .approve-type-notice {
      color: #bababa;
      font-size: 12px;
    }
  }
  .node-not-custom-approve {
    .ant-row {
      margin-bottom: 15px;
    }
  }
  .symblo-select {
    margin-top: -4px;
    padding-right: 5px;
    max-width: 100px;
  }
}

.refactoring-modal {
  .ant-modal-body {
    max-height: 70vh;
    overflow: auto;
    padding: 10px 24px;
    &::-webkit-scrollbar {
      display: none;
    }
    .ant-list-item-content {
      display: block;
    }
    .antd-pro-tag-select-tagSelect {
      max-height: none;
      margin-left: 0;
    }
    .dep-by-bill, .direct-manager, .default-addition, .cost-center, .cost-center-dept, .user-approver, .user-group-approver {
      h4 {
        display: inline-block;
        margin-right: 15px;
      }
    }
  }
  .antd-pro-tag-select-tagSelect {
    .ant-tag:first-child {
      display: none;
    }
  }
}

.new-form-setting {
  .card-container {
    margin-bottom: 16px;
    .card-title {
      font-size: 16px;
      span {
        font-size: 12px;
        font-weight: normal;
        margin-left: 10px;
        color: #aaa;
      }
    }
    .remark, .remark-disabled {
      color: $font-disabled;
    }
    .ant-radio-group {
      display: block;
    }
    .ant-radio-wrapper {
      display: block;
      height: 30px;
      line-height: 30px;
    }
    .ant-checkbox-wrapper {
      height: 30px;
      line-height: 30px;
    }
    .ant-checkbox-wrapper + .ant-checkbox-wrapper {
      margin-left: 0;
    }
    &.select-company-card {
      .remark {
        margin-bottom: 10px;
        color: #aaa;
      }
      .selected-company-container {
        border: 1px solid $divide-line;
        padding: 10px 20px;
        border-radius: 4px;
        line-height: 26px;
        min-height: 80px;
      }
    }
  }
}

.new-workflow {
  display: inline-block;
  width: 100%;
  height: 100%;
  background: #E3E5E8;
  .affix-btn{
    position: fixed;
    right: 10px;
    top: 80px;
    background: transparent;
    z-index: 1;
    /* right: 10px; */
    text-align: right;
    padding: 10px 10px 0;
  }
  .error-message {
    position: fixed;
    top: 80px;
    z-index: 1;
    width: 280px;
    background: #fff;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.15);
    margin-left: calc(50% - 125px);
    padding: 5px 10px;
    font-size: 12px;
    .node-name {
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-line-clamp: 1;
      display: -webkit-box;
      -webkit-box-orient: vertical;
    }
    .node-length{
      border-right: 1px solid #eee;
      padding-right: 5px;
      text-align: right;
    }
    .text-center {
      text-align: center;
    }
    .icon-info{
      color: #CFCFCF;
      transition: all 0.25s;
      &:hover{
        color: #4A90E2;
        cursor: pointer;
        transform: scale(1.0);
      }
    }
  }

  .slideUp {
    -webkit-transform: translateY(0);
    -webkit-animation-name: slideinfrombottom;
    -webkit-animation-duration: 250ms;
    transform: translateY(0);
    animation-name: slideinfrombottom;
    animation-duration: 250ms;
  }

  @-webkit-keyframes slideinfrombottom {
    from {
      -webkit-transform: translateY(100%);
    }
    to {
      -webkit-transform: translateY(0);
    }
  }
}

.right-content {
  padding: 10px 20px;
  height: calc(100vh - 146px);
  overflow-x: hidden;
  overflow-y: auto;
  &::-webkit-scrollbar {
    display: none;
  }
  .node-condition-list {
    .collapse-header {
      .approve-level {
        width: 110px;
      }
      .approve-level-en {
        width: 150px;
      }
    }
    .condition-list-card {
      margin: 10px 0;
      .ant-card-head {
        background: $background-title;
        min-height: 40px;
        .ant-card-head-title {
          font-size: 14px;
          font-weight: normal;
          padding: 8px 0;
        }
        .ant-card-extra {
          padding: 8px 0;
        }
      }
      .no-rule-content {
        color: #ccc;
        padding: 16px 0;
      }
      .condition-title {
        h4 {
          display: inline-block;
          margin-right: 20px;
        }
        .edit-and-delete {
          display: inline-block;
          .edit {
            margin-right: 10px;
          }
        }
      }
      .condition-container {
        margin-bottom: 10px;
        .name, .symbol {
          color: #000;
        }
      }
      .ant-list-item-content {
        display: block;
      }
      .ant-collapse-content > .ant-collapse-content-box {
        padding: 0;
      }
    }
  }
  .form-setting {
    .card-container {
      margin-bottom: 16px;
      .card-title {
        font-size: 16px;
        span {
          font-size: 12px;
          font-weight: normal;
          margin-left: 10px;
          color: #aaa;
        }
      }
      .remark, .remark-disabled {
        color: $font-disabled;
      }
      .ant-radio-group {
        display: block;
      }
      .ant-radio-wrapper {
        display: block;
        height: 30px;
        line-height: 30px;
      }
      .ant-checkbox-wrapper {
        height: 30px;
        line-height: 30px;
      }
      .ant-checkbox-wrapper + .ant-checkbox-wrapper {
        margin-left: 0;
      }
      &.select-company-card {
        .remark {
          margin-bottom: 10px;
          color: #aaa;
        }
        .selected-company-container {
          border: 1px solid $divide-line;
          padding: 10px 20px;
          border-radius: 4px;
          line-height: 26px;
          min-height: 80px;
        }
      }
    }
  }
  .condition-form {
    position: relative;
    .form-container-cover {
      position: absolute;
      width: 100%;
      height: 100%;
      display: none;
      z-index: 1;
      &.show {
        display: block;
      }
    }
    .type-long-double-date, .type-text, .type-boolean, .type-cust-list {
      margin-bottom: 10px;
      & > div, & > span {
        margin-right: 10px;
      }
      .ant-select {
        width: 100%;
      }
      .ant-input-number {
        width: 100%;
      }
      .ant-tag {
        margin-bottom: 5px;
      }
      .type-text-remark {
        .ant-input-sm {
          width: 150px !important;
          margin: 0 5px 5px 0;
        }
        .icon-delete {
          color: #fb6b6b;
          margin: 0 5px;
        }
      }
    }
    .add-icon {
      margin-right: 5px;
    }
    .buttons {
      margin-top: 10px;
      .save-condition-btn {
        margin-right: 20px;
      }
    }
    .select-dep-or-person {
      display: inline-block;
      .placeholder-class {
        color: $default-color;
      }
    }
    .expense-type-selector {
      padding: 0;
    }
    .selector-container .ant-select-selection--single {
      height: 24px;
      .ant-select-selection__rendered {
        line-height: 22px;
      }
    }
    .antd-pro-ellipsis-ellipsis {
      display: inline;
    }
    .expense-type-amount {
      overflow: hidden;
      padding: 0 5px;
      margin-left: 20px;
      border: 1px solid #d1d1d1;
      text-overflow: ellipsis;
      white-space: nowrap;
      border-radius: 3px;
      color: #aaa;
    }
  }
  .node-approve-man, .node-know, .node-approve-ai, .node-print {
    .basic-info-container {
      margin-bottom: 20px;
      .ant-form-item-label {
        text-align: left;
      }
      .title {
        font-size: 20px;
        margin-bottom: 10px;
      }
      .ant-form-item {
        margin-bottom: 10px;
      }
      .approval-select {
        display: inline-block;
        width: 150px;
        margin-left: 10px;
      }
      .ant-card-body {
        padding: 10px 24px;
      }
    }
    .add-btn-container {
      .approve-info-icon {
        color: $default-color;
        margin: 0 5px 0 10px;
      }
      .approve-info-text {
        font-size: 12px;
        color: #aaa;
      }
    }
  }
  .node-know {
    .basic-info-container {
      .ant-checkbox-group {
        line-height: unset;
        .ant-checkbox-group-item {
          display: block;
        }
      }
      .notify-weChat {
        display: inline-block;
        span {
          font-size: 12px;
          color: #bababa;
        }
      }
      .notify-title-show {
        margin: 15px 0 0;
        line-height: 15px;
      }
    }
  }
  .node-approve-ai {
    .approve-type-notice {
      color: #bababa;
      font-size: 12px;
    }
  }
  .node-not-custom-approve {
    .ant-row {
      margin-bottom: 15px;
    }
  }
  .select-rule-modal-container, .select-person-modal-container, .select-depLevel-modal-container {
    .ant-modal-body {
      max-height: 70vh;
      overflow: auto;
      padding: 10px 24px;
      &::-webkit-scrollbar {
        display: none;
      }
      .ant-list-item-content {
        display: block;
      }
      .antd-pro-tag-select-tagSelect {
        max-height: none;
        margin-left: 0;
        .ant-tag {
          border: 1px solid #ddd;
          &.ant-tag-checkable-checked {
            border-color: $default-color;
          }
        }
      }
      .dep-by-bill, .direct-manager, .default-addition, .cost-center, .cost-center-dept, .user-approver, .user-group-approver {
        h4 {
          display: inline-block;
          margin-right: 15px;
        }
      }
    }
    .antd-pro-tag-select-tagSelect {
      .ant-tag:first-child {
        display: none;
      }
    }
  }
}

.table-right {
  padding-left: 10px;
  .action-group {
    padding-left: 10px;
    margin-bottom: 10px;
  }
  .add-btn {
    margin-right: 20px;
    margin-bottom: 10px;
  }
  a:focus {
    text-decoration: none;
  }
}

.left-form {
  .radio-group {
    margin-bottom: 10px;
  }
  .ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
    line-height: 25px;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    padding-left: 0px !important;
  }
  .ant-menu-submenu {
    font-size: 12px;
  }
  .ant-menu-sub.ant-menu-inline > .ant-menu-item, .ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
    line-height: 30px;
    height: 30px;
    padding-left: 15px !important;
    list-style-type: disc;
    list-style-position: inside;
  }
}

.select-rule-modal-container .antd-pro-tag-select-tagSelect {
  max-height: none !important;
  margin-left: 0;
  .ant-tag {
    border: 1px solid #ddd;
    &.ant-tag-checkable-checked {
      border-color: $default-color;
    }
  }
  .ant-tag:first-child {
    display: none;
  }
  .ant-tag {
    border: 1px solid #ddd;
  }
}
